package cn.darkhorse.device.service;

import cn.darkhorse.device.pojo.MesMsgAudit;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 单据审核 服务类
 * </p>
 *
 * @author yuan jun
 * @since 2023-02-03
 */
public interface MesMsgAuditService extends IService<MesMsgAudit> {
    /**
     * 发送审核信息
     *
     * @param typeName
     * @param businessId
     * @param recordUuid
     */
     void sendAuditMsg(String typeName, Long businessId, String recordUuid) ;

    /**
     * 更新审核消息
     * @param businessId
     */
    void upAuditMsg(Long businessId,Long approver,String approveTime,Integer auditStatus,Integer BusinessType);

    /**
     * 删除未审核已删除单据
     * @param businessId
     * @param BusinessType
     */
    void removeMsg(Long businessId,Integer BusinessType);
    /**
     * 列表
     * @param userId
     * @param auditFlag
     * @return
     */
    List<MesMsgAudit> list(Long userId, Integer auditFlag);
}
